<?php
/**
 * 生成静态-推荐新闻时更新相关列表
 * @final
 */
class Staticizer_Apps_News_Event_Recommend extends Staticizer
{
    public function Build($param=NULL)
    {
        if(!$param){
            return FALSE;
        }

        #获取数据
        $data=$param;

        
        #网站首页
        //推荐新闻
        if($data['M_IsRecommend']){
            StaticizerFactory::Create('index.recommend')->Build();
        }


        #资讯首页
        //推荐新闻
        if($data['M_IsRecommend']){
            StaticizerFactory::Create('news.index_recommend')->Build();
        }
    }
}
?>